<html>
<head><meta charset="utf-8"><title>4018 Implement async blocks · t-compiler/rust-analyzer · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/index.html">t-compiler/rust-analyzer</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/4018.20Implement.20async.20blocks.html">4018 Implement async blocks</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="198820077"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/4018%20Implement%20async%20blocks/near/198820077" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> James Hinshelwood <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/4018.20Implement.20async.20blocks.html#198820077">(May 26 2020 at 20:52)</a>:</h4>
<p>Hi all  :) I wanted to take a crack at implementing <a href="https://github.com/rust-analyzer/rust-analyzer/issues/4018">https://github.com/rust-analyzer/rust-analyzer/issues/4018</a> . Is anyone working on this currently?</p>



<a name="198821380"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/4018%20Implement%20async%20blocks/near/198821380" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Florian Diebold <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/4018.20Implement.20async.20blocks.html#198821380">(May 26 2020 at 21:03)</a>:</h4>
<p>impl Trait support is kind of a prerequisite for this, which I'm working on right now</p>



<a name="198821882"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/4018%20Implement%20async%20blocks/near/198821882" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Florian Diebold <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/4018.20Implement.20async.20blocks.html#198821882">(May 26 2020 at 21:08)</a>:</h4>
<p>you could already do the AST / lowering part though, if you want</p>



<a name="198825408"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/4018%20Implement%20async%20blocks/near/198825408" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> std::Veetaha <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/4018.20Implement.20async.20blocks.html#198825408">(May 26 2020 at 21:42)</a>:</h4>
<p><span class="user-mention" data-user-id="211761">@James Hinshelwood</span> also note that the issue comment is a bit outdated, <code>async</code>keyword token  is already available in <code>ast</code> with <a href="https://github.com/rust-analyzer/rust-analyzer/blob/7ddc3b468acc82192a665cdaa5b237167524f834/crates/ra_syntax/src/ast/generated/nodes.rs#L902-L927"><code>EffectBlock</code></a></p>



<a name="198826278"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/4018%20Implement%20async%20blocks/near/198826278" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> James Hinshelwood <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/4018.20Implement.20async.20blocks.html#198826278">(May 26 2020 at 21:53)</a>:</h4>
<p><span class="user-mention silent" data-user-id="129457">Florian Diebold</span> <a href="#narrow/stream/185405-t-compiler.2Fwg-rls-2.2E0/topic/4018.20Implement.20async.20blocks/near/198821882">said</a>:</p>
<blockquote>
<p>you could already do the AST / lowering part though, if you want</p>
</blockquote>
<p>I'll give it a go and see how far I get. Thank you.</p>
<p><span class="user-mention silent" data-user-id="258149">std::Veetaha</span> <a href="#narrow/stream/185405-t-compiler.2Fwg-rls-2.2E0/topic/4018.20Implement.20async.20blocks/near/198825408">said</a>:</p>
<blockquote>
<p><span class="user-mention silent" data-user-id="211761">James Hinshelwood</span> also note that the issue comment is a bit outdated, <code>async</code>keyword token  is already available in <code>ast</code> with <a href="https://github.com/rust-analyzer/rust-analyzer/blob/7ddc3b468acc82192a665cdaa5b237167524f834/crates/ra_syntax/src/ast/generated/nodes.rs#L902-L927"><code>EffectBlock</code></a></p>
</blockquote>
<p>Thanks for pointing that out</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>